package com.examination.mlib.constants;

class ProjectConfigure {

    /**
     * 测试 - 线上
     *
     * 修改isTest :
     *              true : 测试环境
     *              false: 线上版本
     *
     * 修改version :
     *              动态域名版本号
     *
     *
     *
     */

    companion object {

        /**
         *   本地域名配置
         *   0：text
         *   1：T1
         *   2：T2
         *   3：spres
         *   4：online
         *   1、2 开启RNDebug /  Arouter Debug / IMDebug / DevSetting
         */
//        const val dominNo = 3


        //是否以原生域名为主
        const val isAndroidDomin: Boolean = true;
        /**
         * 测试编译模式下true 如果是上线的APK 为false 所有涉及debug功能入口开关
         */
        const val debugFun: Boolean = true;


        //httplog悬浮监控
        const val isOpenHttpLog: Boolean = false;

        //是否开启RN debug连接
        const val isOpenRNConnect: Boolean = debugFun;

        //是否开启Log打印
        const val isOpenLogOutput: Boolean = debugFun;

        //是否开启Crash
        const val isOpenCrashLog: Boolean = debugFun;

        //是否开启ARouterDebug
        const val isOpenArouterLog: Boolean = debugFun;

        //IM debug
        const val isIMSDKLog: Boolean = debugFun;


        /**
         * 域名配置
         */
        const val version: Int = 1


        const val port: String = "patient_android"
        const val domin_DEV: String = "https://api.d1.yilijk.com";
        const val domin_TEST: String = "https://api.t1.yilijk.com";
        const val domin_SPARE: String = "https://api.pre.yilijk.com";
        const val domin_ONLINE: String = "https://api.yilijk.com";

        /**
         * 环信
         */
        //是否开启环信私有化
        const val isRestServer: Boolean = true;

        //IM环信 AppKey
        const val IM_App_key_RestServer: String = "yljk-demo#yilijk-t1"
        const val IM_App_key_onLine: String = "1103201016041605#yilijk"
        const val IM_App_key_Testing: String = "1103201016041605#demo"

        //im环信私有化
        const val IM_App_enableDNSConfig: Boolean = false;
        const val IM_App_RestServer_Testing: String = "https://test-easeim.yilijk.com"
        const val IM_App_IMServer_Testing: String = "test-easeim.yilijk.com"
        const val IM_App_ImPort_Testing: Int = 16717

        const val IM_App_RestServer_onLine: String = "https://easeim.yilijk.com"
        const val IM_App_IMServer_onLine: String = "8.136.234.88"
        const val IM_App_ImPort_onLine: Int = 16717

        /**
         * 腾讯定位
         */
        const val TencentLocation_Appkey: String = "F4BBZ-ICMK6-5N4SS-MRUAB-7UE3S-PZBE3"
//        const val TencentLocation_Appkey:String = "HFBBZ-O2MLU-BT7VP-4MENU-ID733-5KBDR"

        /**
         * 微信配置
         */
        const val WECHAT_ID: String = "wxf401b8e4329a99f4"
        const val WECHAT_SECRET: String = "8209de16713a2a5dd2026cd5d0f1c34d"

        /**
         * 友盟测试配置
         */
        const val Umeng_AppKey_Testing: String = "60829b71be61b50cc6db7ca5"
        const val Umeng_Message_Secret_Testing: String = "a504cf1e72d591864a850254a9d62042"

        /**
         * 友盟线上配置
         */
        const val Umeng_AppKey_onLine: String = "60829b71be61b50cc6db7ca5"
        const val Umeng_Message_Secret_onLine: String = "a504cf1e72d591864a850254a9d62042"


        /**
         * webview配置
         * h1tx.a.u   android患者端
         */
        const val WebView_UserAgent: String = "h1tx.a.u"
    }


    class Open{
        companion object{

            //视频问诊
            const val isOpenVideo: Boolean = true;

            //直播
            const val isOpenLive: Boolean = true;

            //是否开启群组功能
            const val isOpenGroup: Boolean = true;

            //健康
            const val isOpenHealth: Boolean = true;

            //离线推送
            const val isOpenUnlinePush: Boolean = false;

            //是否是渠道包
            //替换为DevicesUtils/isChannel();
            //RN 在线升级
            const val isRnUpdata: Boolean = true;

            //埋点开关
            const val isSendEvent: Boolean = true;


            /**
             * 是否开启接口鉴权
             */
            const val isOpenAttestation: Boolean = true;

            /**
             * 接口鉴权 业务接口511错误时 是否重新刷新salt 重新发起请求
             */
            const val isRequestWhen511: Boolean = isOpenAttestation && true;

            //个人中心设置
            const val isOpenSetting : Boolean = true;
            //消息通知开关
            const val isOpenNotification : Boolean = false;

            /**
             * 是否展示电商
             */
            const val isShowMall : Boolean = false;
        }
    }

}